﻿<%@ Page Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="ReporteAvances.aspx.vb" Inherits="devida_ReporteAvances" Theme="Yahoo-Ocean" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register src="ucAlerta.ascx" TagName="Alerta" TagPrefix="uc1" %>
<%@ OutputCache Location="None" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">

        .style2
        {
            width:100%;
        }
        .style1
        {
            width: 900px;
        }
        </style>
    <base target="_self" />
    <link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" /> 
    <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
    <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />

    <script src="../js/jsForms/js_Consulta.js" type="text/javascript"></script>

    <script src="../js/js_windowpopup.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
       
        function Resaltar_On(GridView) {
            if (GridView != null) {
                GridView.originalBgColor = GridView.style.backgroundColor;
                GridView.style.backgroundColor = "#5BADFF";
            }
        }

        function Resaltar_Off(GridView) {
            if (GridView != null) {
                GridView.style.backgroundColor = GridView.originalBgColor;
            }
        }
            
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
    <asp:Label id="lblTitulo" runat="server" ForeColor="White" Font-Size="Large" Font-Bold="true" ></asp:Label>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="div_grilla">    
    <table width="900px">
    <tr>
    <td></td>
    <td style="width:120px">
    <asp:Label ID="lblPeriodo" runat="server" Text="Periodo: " CssClass="label"></asp:Label>
    </td>
    <td style="width:120px"> 
        <asp:DropDownList ID="ddl_PERIODO" runat="server" CssClass="ddl" AutoPostBack="true"></asp:DropDownList>
        </td>
    </tr>
    </table>
    <div  style="border: solid 1px #99aabd; width: 900px; height: 450px; overflow: auto;" align="center">
    <asp:UpdatePanel ID="upGrilla" runat="server">
    <ContentTemplate>    
    <asp:GridView ID="gv_impresion" runat="server" AutoGenerateColumns="False" DataKeyNames=""  CellPadding="4" CssClass="grid" Font-Size="8pt" GridLines="None" Width="900px">
    <RowStyle ForeColor="#333333" Font-Bold="False" BackColor="#F7F6F3" />
    <Columns>
     <asp:BoundField HeaderText="Periodo" DataField="PERIODO" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="75px" />
        <asp:TemplateField HeaderText="Monitoreador">
            <ItemStyle HorizontalAlign="Left" />
            <ItemTemplate>
                <asp:Label ID="lblMonitoreador" runat="server" Text='<%# Bind("MONITOREADOR") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField HeaderText="Proyecto / Actividad" DataField="NOMBRE" ItemStyle-HorizontalAlign="Left" />
        <asp:TemplateField HeaderText="Plan de Trabajo">
            <ItemTemplate>
                <asp:CheckBox ID="chk1" runat="server" CssClass="chk" Font-Bold="True" />
                <asp:HiddenField ID="hfPLan" runat="server" Value='<%# Eval("ESTADO_PLAN") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Avance Físico">
            <ItemTemplate>
                <asp:CheckBox ID="chk2" runat="server" />
                <asp:HiddenField ID="hfAfis" runat="server" Value='<%# Eval("ESTADO_FISICO") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Avance Financiero">
            <ItemTemplate>
                <asp:CheckBox ID="chk3" runat="server" />
                <asp:HiddenField ID="hfAfin" runat="server" Value='<%# Eval("ESTADO_FINANCIERO") %>' />
            </ItemTemplate>
        </asp:TemplateField>          
    </Columns>
    <SelectedRowStyle BackColor="#5BADFF" Font-Bold="True" ForeColor="#333333" />
    <AlternatingRowStyle BackColor="#CEDAF2" ForeColor="#003366" />
    <PagerStyle BackColor="#336699" Font-Bold="True" Font-Names="Verdana" Font-Size="10px"
        ForeColor="White" Wrap="False" HorizontalAlign="left" />
</asp:GridView>
    </ContentTemplate>
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="ddl_PERIODO" EventName="SelectedIndexChanged" />
    </Triggers>
    </asp:UpdatePanel>
    </div>
</div>
<table width="900px">
                <tr>
                    <td width="40px" align="center">
                    <asp:ImageButton ID="ibExportar" runat="server" Height="23px" align="right" ToolTip="Exportar a Excel" ImageUrl="~/Imagenes/btnExportar.png" />
                    </td>
                    <td >&nbsp;</td>
                    <td width="40px"  align="right"><asp:ImageButton ID="btn_salir" runat="server" Height="23px" align="right" ToolTip="Salir" ImageUrl="~/Imagenes/btnSalir.png" /></td>
                </tr>
            </table>
    <div id="print_area" style="display:none;">
             <asp:GridView ID="gv_doc" runat="server" AutoGenerateColumns="False" BorderColor="Black" RowStyle-VerticalAlign="Middle"
              CellPadding="0" Font-Size="8pt" GridLines="both" Width="1400px" HeaderStyle-BackColor="#66CC99">             
             <Columns>
             <asp:BoundField HeaderText="Periodo" DataField="PERIODO" ItemStyle-HorizontalAlign="Left"  />
        <asp:TemplateField HeaderText="Monitoreador">
            <ItemStyle HorizontalAlign="Left" />
            <ItemTemplate>
                <asp:Label ID="lblMonitoreador" runat="server" Text='<%# Bind("MONITOREADOR") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField HeaderText="Proyecto / Actividad" DataField="NOMBRE" ItemStyle-HorizontalAlign="Left" />
        <asp:TemplateField HeaderText="Plan de Trabajo">
            <ItemTemplate>
                <asp:Label ID="chk1" runat="server" Font-Bold="True" ></asp:Label>
                <asp:HiddenField ID="hfPLan" runat="server" Value='<%# Eval("ESTADO_PLAN") %>' />
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Avance Físico">
            <ItemTemplate>
                <asp:Label ID="chk2" runat="server" Font-Bold="True" ></asp:Label>
                <asp:HiddenField ID="hfAfis" runat="server" Value='<%# Eval("ESTADO_FISICO") %>' />
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Avance Financiero">
            <ItemTemplate>
                <asp:Label ID="chk3" runat="server" Font-Bold="True" ></asp:Label>
                <asp:HiddenField ID="hfAfin" runat="server" Value='<%# Eval("ESTADO_FINANCIERO") %>' />
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:TemplateField>          
    </Columns>
            </asp:GridView>
            </div>
</asp:Content>

